def group_6(tree):
    dict_group_6 = {"身高": None, "体重": None, "BMI": None, "腰围": None, "臀围": None, "腰臀比": None, "收缩压": None,
                    "舒张压": None}

    fields = {
        "身高": '//input[@id="EHRHFINDICATOR.height"]/@value',
        "体重": '//input[@id="EHRHFINDICATOR.weight"]/@value',
        "BMI": '//input[@id="EHRHFINDICATOR.bmi"]/@value',
        "腰围": '//input[contains(@id, "waistline")]/@value',
        "臀围": '//input[contains(@id, "hipline")]/@value',
        "腰臀比": '//input[@id="EHRHFINDICATOR.whr"]/@value',
        "收缩压": '//input[@id="EHRHFINDICATOR.sbpL"]/@value',
        "舒张压": '//input[@id="EHRHFINDICATOR.dbpL"]/@value'
    }

    for key, xpath in fields.items():
        result = tree.xpath(xpath)
        if result:  # 检查结果列表是否非空
            dict_group_6[key] = str(float(result[0]))
        # 如果结果为空，字段保持None值

    print("问题不在6")
    return dict_group_6
